const mongoose = require("mongoose");
const { baseModel } = require("./baseModel");
const uploadSchema = new mongoose.Schema({
  parentId: {
    type: String,
    required: true,
  },
  fileName: {
    type: String,
    required: true,
  },
  fileType: {
    type: String,
    required: true,
  },
  filePath: {
    type: String,
    required: true,
  },
  //文件大小
  fileSize: {
    type:String,
    required:true
  },
  ...baseModel,
});

module.exports = uploadSchema;